Skip to content

feat: add govDelivery listing opportunity email#6503

Open
ludtkemorgan wants to merge 7 commits into
mainfrom
6220/govDelivery
Open

feat: add govDelivery listing opportunity email#6503
ludtkemorgan wants to merge 7 commits into
mainfrom
6220/govDelivery

Conversation

@ludtkemorgan

@ludtkemorgan ludtkemorgan commented Jul 14, 2026

Copy link
Copy Markdown
Collaborator

This PR addresses #6220

  • Addresses the issue in full
  • Addresses only certain aspects of the issue

Description

Doorway has the same listing opportunity email that is in core except it goes through govDelivery rather than directly through the email service.

This PR does the following:

  • Adds a govDelivery service to be able to send bulletins to defined lists
  • sends the listing opportunity email via govDelivery if enableListingOpportunity feature flag is enabled
  • Updates the listing opportunity email to have features only seen in Doorway:
    • Disclaimer text below the apply buttons - done if the text exists in the translation table
    • Additional footer text - dynamically adds if the text exists in the translation table
    • Bolded the due date field - This has been done everywhere

Open questions:

  1. The time has been added to the due date field ("May 19, 2026 at 3:00pm PDT" instead of "May 19, 2026"). I added it for all cases, but need to get verification that that can be done for LA. Confirmed that it is ok to change everywhere

How Can This Be Tested/Reviewed?

This is hard to test without access to govDelivery. You can work with Morgan to get added to the staging govDelivery list

The "New Rental Opportunity" email with correct content should be sent in the following scenarios:

  1. when a listing is created and the status is "active"
  2. when a listing is updated and the status is "active" when it previously wasn't ("publish" the listing)

Additionally the new links displayed around the footer should work. This can be tested by adding this to the english entry in the translation table within rentalOpportunity.footer

            additionalLink0: {
              text: 'Learn about a 50% transit discount with ',
              name: 'Clipper START',
              url: 'https://links-2.govdelivery.com/CL0/https:%2F%2Fwww.clipperstartcard.com%2Fs%2F%3Futm_source=doorway%26utm_medium=email%26utm_campaign=rental_notifs/1/0101019c8c58330c-36ebe110-1890-40c9-8035-93b4e884f4d8-000000/cGX47-6Dds1b9elbgto4-GN0ACidbVNrlspsoMqHRY4=445',
            },
            additionalLink1: {
              text: 'Learn about a 50% express lane toll discount with ',
              name: 'Express Lanes START',
              url: 'https://links-2.govdelivery.com/CL0/https:%2F%2Fwww.expresslanesstart.org%2Fs%2F%3Futm_source=doorway%26utm_medium=email%26utm_campaign=rental_notifs/1/0101019c8c58330c-36ebe110-1890-40c9-8035-93b4e884f4d8-000000/o9zPBFhzhDDt8lRnAjYw6fTuWto9D62FuBOlTK29NGY=445',
            },
          },

Author Checklist:

  • Added QA notes to the issue with applicable URLs
  • Reviewed in a desktop view
  • Reviewed in a mobile view
  • Reviewed considering accessibility
  • Added tests covering the changes
  • Made corresponding changes to the documentation
  • Ran yarn generate:client and/or created a migration when required

Review Process:

  • Read and understand the issue
  • Ensure the author has added QA notes
  • Review the code itself from a style point of view
  • Pull the changes down locally and test that the acceptance criteria is met
  • Either (1) explicitly ask a clarifying question, (2) request changes, or (3) approve the PR, even if there are very small remaining changes, if you don't need to re-review after the updates

@netlify

netlify Bot commented Jul 14, 2026

Copy link
Copy Markdown

Deploy Preview for bloom-angelopolis canceled.

Name Link
🔨 Latest commit 8bf5705
🔍 Latest deploy log https://app.netlify.com/projects/bloom-angelopolis/deploys/6a5956b81a4bf900088810ea

@netlify

netlify Bot commented Jul 14, 2026

Copy link
Copy Markdown

Deploy Preview for partners-bloom-dev ready!

Name Link
🔨 Latest commit 8bf5705
🔍 Latest deploy log https://app.netlify.com/projects/partners-bloom-dev/deploys/6a5956b895587200098f896c
😎 Deploy Preview https://deploy-preview-6503--partners-bloom-dev.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@netlify

netlify Bot commented Jul 14, 2026

Copy link
Copy Markdown

Deploy Preview for bloom-exygy-dev ready!

Name Link
🔨 Latest commit 8bf5705
🔍 Latest deploy log https://app.netlify.com/projects/bloom-exygy-dev/deploys/6a5956b88dac750008af82f0
😎 Deploy Preview https://deploy-preview-6503--bloom-exygy-dev.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant